package com.agent.controller;

import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.agent.service.AsFunctionService;

@RestController
@CrossOrigin
public class AsFunctionController {
	@Autowired
	private AsFunctionService asFunctionService;

	@RequestMapping(value = "queryFunctions", method = RequestMethod.GET)
	public List<HashMap<String, Object>> queryFunctions() {
		return asFunctionService.queryFunctions();
	}
}
